package com.gao.flying.mq.config;

import org.apache.commons.digester3.annotations.rules.ObjectCreate;
import org.apache.commons.digester3.annotations.rules.SetProperty;

/**
 * @author gaojh
 * @date 2016/7/17
 */
@ObjectCreate(pattern = "config/destination")
public class Dest {

    @SetProperty(pattern = "config/destination", attributeName = "name")
    private String name;
    @SetProperty(pattern = "config/destination", attributeName = "type")
    private String type;
    @SetProperty(pattern = "config/destination", attributeName = "broker")
    private String broker;
    @SetProperty(pattern = "config/destination", attributeName = "durable")
    private Boolean durable;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBroker() {
        return broker;
    }

    public void setBroker(String broker) {
        this.broker = broker;
    }

    public Boolean getDurable() {
        return durable;
    }

    public void setDurable(Boolean durable) {
        this.durable = durable;
    }
}
